﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 出库单明细
    /// </summary>
    public class DeliveryOrderDetails
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; } //出库明细单号

        [ForeignKey("CommodityInformationSheetId")]
        public Guid Commodity { get; set; }//商品
        public decimal UnitPrice { get; set; }//单价
        [ForeignKey("OutboundDeliveryOrderId")]
        public Guid OutgoingSingleNumber { get; set; }//出库单单号
        public int Quantity { get; set; }//数量
        public CommodityInformationSheet CommodityInformationSheet { get; set; }
        public OutboundDeliveryOrder OutboundDeliveryOrder { get; set; }
    }
}
